const routes = [
  {
    path: '/HomeView',
    name: 'HomeView',
    component: () => import('../views/HomeView.vue'),
    children: [
      {
        path: '/HomeView/list',
        name: 'list',
        component: () => import('../views/Home/List.vue'),
      },
      {
        path: '/HomeView/bao',
        name: 'bao',
        component: () => import('../views/Home/Bao.vue'),
      },
      {
        path: '/HomeView/dingdan',
        name: 'dingdan',
        component: () => import('../views/Home/Dingdan.vue'),
      },
      {
        path: '/HomeView/wode',
        name: 'wode',
        component: () => import('../views/Home/Wode.vue'),
      },
    ]
  },
  {
    path: '/',
    redirect: '/homeview/list'//重定向
  },
  {// 404 路由
    path: '*', // * 表示匹配任何路由(所有路由)
    component: () => import('../views/NotFound.vue')
  }

]

export default routes;